<?php
//简单工厂模式
require_once "Factory.php";
$factory = new Factory();
$dell = $factory->createFactory('dell');
$dell->color("black");
$dell->system("windows");
print_r($dell->getName());
echo "</br>";
$huawei = $factory->createFactory("huawei");
$huawei->color("red");
$huawei->system("linux");
echo $huawei->getName();
